package com.edt.ichannel.api.service.impl;

import com.edt.ichannel.api.dao.FlowDao;
import com.edt.ichannel.api.entiy.local.Flow;
import com.edt.ichannel.api.service.FlowService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 肖瑶
 */
@Service
public class FlowServiceImpl implements FlowService {

    @Resource
    private FlowDao flowDao;

    /**
     * 获取时间限定内充值手机号可充值的一个流量包信息
     * @param flowCode 流量规格ID
     * @param phone 充值手机号
     * @param date 时间限定
     * @return 流量包信息
     */
    @Override
    public List<Flow> getFlowByPhone(String flowCode, String phone, String date, String flag) {
        return flowDao.getFlowByPhone(flowCode,phone,date,flag);
    }
}
